package com.yuyou.fn.tradingservice.service;

import com.github.wens.framework.service.ISuperService;
import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.tradingservice.entity.ServiceProduct;
import com.yuyou.fn.tradingservice.vo.ServiceProductVo;

import java.util.List;

/**
 *
 * ServiceProduct 表数据服务层接口
 *
 */
public interface IServiceProductService extends ISuperService<ServiceProduct,Long> {

    void saveServiceProduct(ServiceProductVo productVo, String productImages);

    Page<ServiceProduct> findProductForPage(int pageNo, int pageSize, Long categoryId, Long busTeamId, String productName);

    Page<ServiceProduct> findProductForPage(ServiceProductVo productVo, int pageNo, int pageSize);

    void deleteProduct(Long categoryId);

    List<ServiceProduct> findProductsByCategoryId(Long categoryId);

    List<ServiceProduct> productDetail(Long categoryId);

}